﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/RedesignedMaster.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<final_darskade.Models.user>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>جزئیات </h2>

    <table class="farsi-table">

    <tr>
    <th>
        نام
    </th>
    <th>
        نام خانوادگی
    </th>
    <th>
        شماره دانشجویی
    </th>
    <th>
        آدرس پست الکترونیکی
    </th>
    <th></th>
    </tr>

    <%foreach(var item in Model) {%>

        <tr>
        <td><%:item.first_name %></td>        
        <td><%:item.last_name %></td>
       <td> <%:item.user_id %></td>
        <td><%:item.email %></td>

        </tr>
    <%} %>

    </table>
    <p>
        <%:Html.ActionLink("بازگشت به لیست","Index") %>
    </p>
    <%--<fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">user_id</div>
        <div class="display-field"><%: Model.user_id %></div>
        
        <div class="display-label">username</div>
        <div class="display-field"><%: Model.username %></div>
        
        <div class="display-label">pass</div>
        <div class="display-field"><%: Model.pass %></div>
        
        <div class="display-label">role_id</div>
        <div class="display-field"><%: Model.role_id %></div>
        
        <div class="display-label">security_question</div>
        <div class="display-field"><%: Model.security_question %></div>
        
        <div class="display-label">security_answer</div>
        <div class="display-field"><%: Model.security_answer %></div>
        
        <div class="display-label">email</div>
        <div class="display-field"><%: Model.email %></div>
        
        <div class="display-label">is_first_login</div>
        <div class="display-field"><%: Model.is_first_login %></div>
        
        <div class="display-label">first_name</div>
        <div class="display-field"><%: Model.first_name %></div>
        
        <div class="display-label">last_name</div>
        <div class="display-field"><%: Model.last_name %></div>
        
        <div class="display-label">entrance_year</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.entrance_year) %></div>
        
    </fieldset>--%>
   <%-- <p>

        <%: Html.ActionLink("Edit", "Edit", new { id=Model.user_id }) %> |
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>
--%>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="RightColumn" runat="server">
</asp:Content>

